package com.ge.modules.sys.service.impl;

import com.ge.modules.dao.TbUserDao;
import com.ge.modules.entity.TbUser;
import com.ge.modules.sys.service.SysTbUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class SysTbUserServiceImpl implements SysTbUserService {
    @Autowired
    private TbUserDao userDao;

    @Override
    public TbUser queryObject(Integer userId) {
        return userDao.queryObject(userId);
    }

    @Override
    public List<TbUser> queryList(Map<String, Object> map) {
        return userDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return userDao.queryTotal(map);
    }

    @Override
    public void save(TbUser user) {
        userDao.save(user);
    }

    @Override
    public void update(TbUser user) {
        userDao.update(user);
    }

    @Override
    public void delete(Integer userId) {
        userDao.delete(userId);
    }

    @Override
    public void deleteBatch(Integer[] userIds) {
        userDao.deleteBatch(userIds);
    }

}
